<template>
  <div class="pages">
    <el-space>
      <a-auto-complete
        style="width: 300px"
        ref="aAutoCompleteRef"
        v-model="name"
        :querySearchStr="'aAutoCompleteCode'"
      ></a-auto-complete>
      <el-button type="primary" @click="handleCache">确定缓存</el-button>
    </el-space>
  </div>
</template>

<script setup lang="ts">
import aAutoComplete from "@/components/aAutoComplete/index.vue";

const name = ref("");
const aAutoCompleteRef = ref();
function handleCache() {
  aAutoCompleteRef.value?.executeStorage();
}
</script>

<style>
</style>